import request from '/@/utils/request';

/**
 * 系统部门接口
 */
export function systemDeptApi() {
	return {
		getDeptList: (params?: object) => {
			return request({
				url: '/system/sys/dept/deptList',
				method: 'get',
				params,
			});
		},
		addDept: (data: object) => {
			return request({
				url: '/system/sys/dept/addDept',
				method: 'post',
				data,
			});
		},
		delDept: (data?: number | string) => {
			return request({
				url: '/system/sys/dept/deleteDept/' + data,
				method: 'post',

			});
		}
	};
}
